<?php
namespace Home\Controller;
use Think\Controller;

class PointController extends CommonController {
	public  function index(){
		$this -> assign('title','系统E积分明细');
		$pointMod = M('cf');
		$point = $pointMod -> where('1=1') -> order('cf_time desc')->select();
		$this -> assign('point',$point);		
		$this -> display('');
	}

	//我的积分明细
	public function mypoint(){
		$this -> assign('title','我的积分明细');
		$mypoint = M('user_zt');
		$mypointData = $mypoint -> where("user_id = '%d' ",$_SESSION['users']['user_id']) -> select();
		$this -> assign('mypointData',$mypointData);
		$this -> display('');
	}
}